import React from 'react'
import { NavLink,Link } from 'react-router-dom'
// import Figure from './plugin/Figure'

export default function Index() {
    return (
        <header>
            <div className="top">
                <div className="w-all">
                    <ul className="fl">
                        <li><i className="pticon pticon-home pticon-lg"></i><a href="https://www.lxres.com/" title="流星资源网">流星资源网</a></li>
                    </ul>
                    <ul className="fr">
                        <li><i className="pticon pticon-cube pticon-lg"></i>
                            {/* <a href="https://www.lxres.com/e/add/AddInfo.php?classid=11&ampmid=1&ampecmscheck=1" title="我要发布">我要发布</a> */}
                            <Link to="/add" >我要发布</Link>
                        </li>
                    </ul>
                </div>
            </div>
            <div className="clear"></div>
            <div className="logosearch w-all">
                <div className="logo fl"><a href="https://www.lxres.com/" title="流星资源网"><img src="/logo.png" alt="流星资源网" /></a></div>
                <form className="searchbox fr" action="https://www.lxres.com/e/search/index.php" method="post">
                    <div className="dropmenu">
                        <span className="tri"></span>
                        <ul className="dropmenu-item">
                            <li data-type="title">名称</li>
                            <li data-type="writer">作者</li>
                            <li data-type="title,smalltext,writer">综合</li>
                        </ul>
                    </div>
                    <input name="searchtype" type="hidden" value="title" />
                    <input type="hidden" name="tbname" value="lx" />
                    <input type="hidden" name="tempid" value="1" />
                    <label className="fl">
                        <input type="text" name="keyboard" id="" className="text" />
                    </label>
                    <input type="submit" value="搜索" className="searchbtn" />
                </form>
            </div>
            <nav className="w-all">
                <ul className="clearfix">
                    <li>
                        <NavLink activeClassName="nav-active" to="/main">首页</NavLink>
                    </li>
                    <li>
                        <NavLink activeClassName="nav-active" to="/document">单机任务</NavLink>
                    </li>
                    <li>
                        <NavLink activeClassName="nav-active" to="/note">笔记</NavLink>
                    </li>
                </ul>
            </nav>
            {/* <Figure /> */}
        </header>
    )
}
